cmake_minimum_required(VERSION 3.21)
project(Seekfree_STC32G12K128_Opensource_Library C)

set(CMAKE_C_STANDARD 11)

include_directories(Libraries/libraries)
include_directories(Libraries/seekfree_libraries)
include_directories(Libraries/seekfree_peripheral)
include_directories(Project/CODE/CarPort)
include_directories(Project/CODE/Control)
include_directories(Project/CODE/Fork)
include_directories(Project/CODE/Fuzzy)
include_directories(Project/CODE/Inductance)
include_directories(Project/CODE/Loop)
include_directories(Project/CODE/Menu)
include_directories(Project/CODE/Motor)
include_directories(Project/CODE/Motor_Control)
include_directories(Project/CODE/Mykc)
include_directories(Project/CODE/Serve)
include_directories(Project/MDK)
include_directories(Project/USER/inc)

add_executable(Seekfree_STC32G12K128_Opensource_Library
        Libraries/libraries/board.c
        Libraries/libraries/board.h
        Libraries/libraries/common.c
        Libraries/libraries/common.h
        Libraries/libraries/STC32Gxx.h
        Libraries/seekfree_libraries/zf_adc.c
        Libraries/seekfree_libraries/zf_adc.h
        Libraries/seekfree_libraries/zf_delay.c
        Libraries/seekfree_libraries/zf_delay.h
        Libraries/seekfree_libraries/zf_eeprom.c
        Libraries/seekfree_libraries/zf_eeprom.h
        Libraries/seekfree_libraries/zf_exti.c
        Libraries/seekfree_libraries/zf_exti.h
        Libraries/seekfree_libraries/zf_fifo.c
        Libraries/seekfree_libraries/zf_fifo.h
        Libraries/seekfree_libraries/zf_gpio.c
        Libraries/seekfree_libraries/zf_gpio.h
        Libraries/seekfree_libraries/zf_iic.c
        Libraries/seekfree_libraries/zf_iic.h
        Libraries/seekfree_libraries/zf_mdu16.c
        Libraries/seekfree_libraries/zf_mdu16.h
        Libraries/seekfree_libraries/zf_nvic.c
        Libraries/seekfree_libraries/zf_nvic.h
        Libraries/seekfree_libraries/zf_pwm.c
        Libraries/seekfree_libraries/zf_pwm.h
        Libraries/seekfree_libraries/zf_spi.c
        Libraries/seekfree_libraries/zf_spi.h
        Libraries/seekfree_libraries/zf_tim.c
        Libraries/seekfree_libraries/zf_tim.h
        Libraries/seekfree_libraries/zf_uart.c
        Libraries/seekfree_libraries/zf_uart.h
        Libraries/seekfree_peripheral/headfile.h
        Libraries/seekfree_peripheral/SEEKFREE_18TFT.c
        Libraries/seekfree_peripheral/SEEKFREE_18TFT.h
        Libraries/seekfree_peripheral/SEEKFREE_ABSOLUTE_ENCODER.c
        Libraries/seekfree_peripheral/SEEKFREE_ABSOLUTE_ENCODER.h
        Libraries/seekfree_peripheral/SEEKFREE_AT24C02.c
        Libraries/seekfree_peripheral/SEEKFREE_AT24C02.h
        Libraries/seekfree_peripheral/SEEKFREE_BLUETOOTH_CH9141.c
        Libraries/seekfree_peripheral/SEEKFREE_BLUETOOTH_CH9141.h
        Libraries/seekfree_peripheral/SEEKFREE_CONFIG.h
        Libraries/seekfree_peripheral/SEEKFREE_DL1A.c
        Libraries/seekfree_peripheral/SEEKFREE_DL1A.h
        Libraries/seekfree_peripheral/SEEKFREE_FONT.c
        Libraries/seekfree_peripheral/SEEKFREE_FONT.h
        Libraries/seekfree_peripheral/SEEKFREE_ICM20602.c
        Libraries/seekfree_peripheral/SEEKFREE_ICM20602.h
        Libraries/seekfree_peripheral/SEEKFREE_IMU660RA.c
        Libraries/seekfree_peripheral/SEEKFREE_IMU660RA.h
        Libraries/seekfree_peripheral/SEEKFREE_IMU963RA.c
        Libraries/seekfree_peripheral/SEEKFREE_IMU963RA.h
        Libraries/seekfree_peripheral/SEEKFREE_IPS114_SPI.c
        Libraries/seekfree_peripheral/SEEKFREE_IPS114_SPI.h
        Libraries/seekfree_peripheral/SEEKFREE_MPU6050.c
        Libraries/seekfree_peripheral/SEEKFREE_MPU6050.h
        Libraries/seekfree_peripheral/SEEKFREE_OLED.c
        Libraries/seekfree_peripheral/SEEKFREE_OLED.h
        Libraries/seekfree_peripheral/SEEKFREE_PRINTF.c
        Libraries/seekfree_peripheral/SEEKFREE_PRINTF.h
        Libraries/seekfree_peripheral/SEEKFREE_TSL1401.c
        Libraries/seekfree_peripheral/SEEKFREE_TSL1401.h
        Libraries/seekfree_peripheral/SEEKFREE_VIRSCO.c
        Libraries/seekfree_peripheral/SEEKFREE_VIRSCO.h
        Libraries/seekfree_peripheral/SEEKFREE_WIRELESS.c
        Libraries/seekfree_peripheral/SEEKFREE_WIRELESS.h
        Libraries/seekfree_peripheral/SEEKFREE_WIRELESS_CH573.c
        Libraries/seekfree_peripheral/SEEKFREE_WIRELESS_CH573.h
        Project/CODE/CarPort/carport.c
        Project/CODE/CarPort/carport.h
        Project/CODE/Control/control.c
        Project/CODE/Control/control.h
        Project/CODE/Fork/fork.c
        Project/CODE/Fork/fork.h
        Project/CODE/Fuzzy/fuzzy.c
        Project/CODE/Fuzzy/fuzzy.h
        Project/CODE/Inductance/inductance.c
        Project/CODE/Inductance/inductance.h
        Project/CODE/Loop/loop.c
        Project/CODE/Loop/loop.h
        Project/CODE/Menu/menu.c
        Project/CODE/Menu/menu.h
        Project/CODE/Motor/motor.c
        Project/CODE/Motor/motor.h
        Project/CODE/Motor_Control/motor_control.c
        Project/CODE/Motor_Control/motor_control.h
        Project/CODE/Mykc/mykc.c
        Project/CODE/Mykc/mykc.h
        Project/CODE/Serve/serve.c
        Project/CODE/Serve/serve.h
        Project/MDK/control.c
        Project/MDK/control.h
        Project/USER/inc/isr.h
        Project/USER/src/isr.c
        Project/USER/src/main.c)
